import { myRequest } from "../../api/myRequest";
export default {
  initRouting(params) {
    return myRequest({
      url: "/tz/production/initRouting",
      method: "post",
      data: params,
    });
  },
  getWorkCenterByRoutingId(params) {
    return myRequest({
      url: "/tz/production/getWorkCenterByRoutingId",
      method: "post",
      data: params,
    });
  },
  deletePlan(params) {
    return myRequest({
      url: "/tz/production/deletePlan",
      method: "post",
      data: params,
    });
  },
  toDoExecutePlan(params) {
    return myRequest({
      url: "/tz/production/executePlan",
      method: "post",
      data: params,
    });
  },
  planQueryByPage(params) {
    return myRequest({
      url: "/tz/production/planQueryByPage",
      method: "post",
      data: params,
    });
  },
  queryTankNotLinkByPage(params) {
    return myRequest({
      url: "/tz/production/queryTankNotLinkByPage",
      method: "post",
      data: params,
    });
  },
  addWorkNotice(params) {
    return myRequest({
      url: "/tz/production/addWorkNotice",
      method: "post",
      data: params,
    });
  },
  executeWorkNotice(params) {
    return myRequest({
      url: "/tz/production/executeWorkNotice",
      method: "post",
      data: params,
    });
  },
  addMaterialRecord(params) {
    return myRequest({
      url: "/tz/production/addMaterialRecord",
      method: "post",
      data: params,
    });
  },
  addWorkReportRecord(params) {
    return myRequest({
      url: "/tz/production/addWorkReportRecord",
      method: "post",
      data: params,
    });
  },
  deleteWorkReportRecord(params) {
    return myRequest({
      url: "/tz/production/deleteWorkReportRecord",
      method: "post",
      data: params,
    });
  },
  addProductionPlan(params) {
    return myRequest({
      url: "/tz/production/addProductionPlan",
      method: "post",
      data: params,
    });
  },
  querySalesOrderNotLinkByPage(params) {
    return myRequest({
      url: "/tz/production/querySalesOrderNotLinkByPage",
      method: "post",
      data: params,
    });
  },
  addRouting(params) {
    return myRequest({
      url: "/tz/production/addRouting",
      method: "post",
      data: params,
    });
  },
  addSalesOrderLinkToProductionPlan(params) {
    return myRequest({
      url: "/tz/production/addSalesOrderLinkToProductionPlan",
      method: "post",
      data: params,
    });
  },
  deleteSalesOrderLinkToProductionPlan(params) {
    return myRequest({
      url: "/tz/production/deleteSalesOrderLinkToProductionPlan",
      method: "post",
      data: params,
    });
  },
  updateProductionPlanStatus(params) {
    return myRequest({
      url: "/tz/production/updateProductionPlanStatus",
      method: "post",
      data: params,
    });
  },

  submitWorkReportRecord(params) {
    return myRequest({
      url: "/tz/production/submitWorkReportRecord",
      method: "post",
      data: params,
    });
  },
  approveProductionPlan(params) {
    return myRequest({
      url: "/tz/production/approveProductionPlan",
      method: "post",
      data: params,
    });
  },
  queryProductionPlanAndHier(params) {
    return myRequest({
      url: "/tz/production/queryProductionPlanAndHier",
      method: "post",
      data: params,
    });
  },
  updateRequireSalesOrder(params) {
    return myRequest({
      url: "/tz/production/updateRequireSalesOrder",
      method: "post",
      data: params,
    });
  },
  dealRoutingWorkCenter(params) {
    return myRequest({
      url: "/tz/production/dealRoutingWorkCenter",
      method: "post",
      data: params,
    });
  },
};
